package com.itbegin.api;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.itbegin.model.User;

@RestController
public class HelloApi {
	@RequestMapping(value="/api/hello",method=RequestMethod.GET)
	public String hello(){
		return "这是 hello api";
	}
	
	@RequestMapping(value="/api/user",method=RequestMethod.GET)
	public User user(){
		return new User("01","itbegin");
	}
}

